module Base
{
	model Trailer_basictrailer1
	{
		mesh = vehicles/LiazBasicTrailers|TrailerBody2,
		shader = vehicle_norandom_multiuv_noreflect,
		scale = 1.0,
	}
	model Trailer_basictrailer1_Interior
	{
		mesh = vehicles/LiazBasicTrailers|TrailerInterior,
        texture = Vehicles/LiazTrailerInterior2,
		shader = vehiclewheel,
		scale = 1.0,
	}
	model Trailer_basictrailer1frontwheelleft
	{
		mesh = vehicles/LiazBasicTrailers|LiazTrailerWheelRear,
		texture = vehicles/Liaz300Reartires,
		shader = vehiclewheel,
                invertX = TRUE,
	}
	model Trailer_basictrailer1frontwheelright
	{
		mesh = vehicles/LiazBasicTrailers|LiazTrailerWheelRear,
		texture = vehicles/Liaz300Reartires,
		shader = vehiclewheel,
                invertX = TRUE,
	}
	model Trailer_basictrailer1backwheelleft
	{
		mesh = vehicles/LiazBasicTrailers|LiazTrailerWheelRear,
		texture = vehicles/Liaz300Reartires,
		shader = vehiclewheel,
	}
	model Trailer_basictrailer1backwheelright
	{
		mesh = vehicles/LiazBasicTrailers|LiazTrailerWheelRear,
		texture = vehicles/Liaz300Reartires,
		shader = vehiclewheel,
	}
	model Trailer_basictrailer1_SpareTire1
	{
		mesh = vehicles/LiazBasicTrailers|SpareTire1,
		shader = vehiclewheel,
                texture = Vehicles/Liaz300Reartires,
		 static = TRUE,
		 scale = 1.0,

	}
	model Trailer_basictrailer1_SpareTire2
	{
		mesh = vehicles/LiazBasicTrailers|SpareTire2,
		shader = vehiclewheel,
                texture = Vehicles/Liaz300Reartires,
		 static = TRUE,
		 scale = 1.0,

	}
	vehicle Trailer_Liaztrailer1
	{
		mechanicType = 2,
		offRoadEfficiency = 0.8,
		engineRepairLevel = 4,
		playerDamageProtection = 0.8,

		model
		{
			file = Trailer_basictrailer1,
			scale = 0.9400,
			offset = 0.0000 0.4255 0.3298,
		}

		spawnOffsetY = 0.2500000,

		skin
		{
			texture = Vehicles/LiazTrailerBaseHospital,
		}

		skin
		{
			texture = Vehicles/LiazTrailerBaseNWMF,
		}

		skin
		{
			texture = Vehicles/LiazTrailerBaseGreen,
		}

		skin
		{
			texture = Vehicles/LiazTrailerBaseWhite,
		}

		skin
		{
			texture = Vehicles/LiazTrailerBaseBlue,
		}

		skin
		{
			texture = Vehicles/LiazTrailerBaseYellow,
		}

		skin
		{
			texture = Vehicles/LiazTrailerBaseRed,
		}

		skin
		{
			texture = Vehicles/LiazTrailerBaseAdvert,
		}

		skin
		{
			texture = Vehicles/LiazTrailerBaseAdvert2,
		}

		skin
		{
			texture = Vehicles/LiazTrailerBaseAdvert3,
		}

		textureMask = Vehicles/LiazTrailerBaseMask,
		textureLights = Vehicles/LiazTrailerBaseLights,
		textureDamage1Overlay = Vehicles/LiazSemiTrailerBlood,
		textureDamage2Overlay = Vehicles/LiazSemiTrailerBlood,
		textureDamage1Shell = Vehicles/LiazSemiTrailerDamage,
		textureDamage2Shell = Vehicles/LiazSemiTrailerDamage,
		textureRust = Vehicles/LiazSemiTrailerRust,
		extents = 2.3191 1.7447 5.3830,
		mass = 275,
		physicsChassisShape = 2.3191 1.7447 5.3830,
		centerOfMassOffset = 0.0000 0.4468 -1.6702,
		shadowExtents = 2.3473 10.8846,
		shadowOffset = 0.0000 0.0246,
		engineForce = 3600,
		engineQuality = 60,
		engineLoudness = 55,
		maxSpeed = 70f,
		brakingForce = 1,
		stoppingMovementForce = 2.0f,
		rollInfluence = 0.15f,
		steeringIncrement = 0.03,
		steeringClamp = 0.3,
		suspensionStiffness = 45,
		suspensionCompression = 4.83,
		suspensionDamping = 3.88,
		maxSuspensionTravelCm = 14,
		suspensionRestLength = 0.20f,
		wheelFriction = 4.0f,
		frontEndHealth = 1050,
		rearEndHealth = 1050,

		wheel FrontLeft
		{
			front = false,
			offset = 0.9043 -0.5532 -2.4149,
			radius = 0.39f,
			width = 2.00f,
		}

		wheel FrontRight
		{
			front = false,
			offset = -0.9043 -0.5532 -2.4149,
			radius = 0.39f,
			width = 2.00f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.9043 -0.5532 -3.3511,
			radius = 0.39f,
			width = 2.00f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.9043 -0.5532 -3.3511,
			radius = 0.39f,
			width = 2.00f,
		}

		area TruckBed
		{
			xywh = 0.0000 -4.8085 2.4894 0.8936,
		}

		area TireFrontLeft
		{
			xywh = 1.3830 -2.5638 0.4468 0.5106,
		}

		area TireFrontRight
		{
			xywh = -1.3830 -2.5213 0.4468 0.5106,
		}

		area TireRearLeft
		{
			xywh = 1.3830 -3.0745 0.4468 0.5106,
		}

		area TireRearRight
		{
			xywh = -1.3830 -3.0319 0.4468 0.5106,
		}

		part GloveBox
		{
			model Liaz300SemiTrailerInterior
			{
				file = Trailer_basictrailer1_Interior,
			}

			area = SeatFrontRight,
			itemType = Base.GloveBox,
			mechanicRequireKey = true,

			lua
			{
				create = Vehicles.Create.Default,
			}
		}

		template = Tire,

		part TireFrontLeft
		{
			model InflatedTirePlusWheel
			{
				file = Trailer_basictrailer1frontwheelleft,
			}

			table install
			{
				complete = Vehicles.InstallTest.Default,
				requireInstalled = SuspensionRearRight,
			}
		}

		part TireFrontRight
		{
			model InflatedTirePlusWheel
			{
				file = Trailer_basictrailer1frontwheelright,
			}

			table install
			{
				complete = Vehicles.InstallTest.Default,
				requireInstalled = SuspensionRearRight,
			}
		}

		part TireRearLeft
		{
			model InflatedTirePlusWheel
			{
				file = Trailer_basictrailer1backwheelleft,
			}

			table install
			{
				complete = Vehicles.InstallTest.Default,
				requireInstalled = SuspensionRearRight,
			}
		}

		part TireRearRight
		{
			model InflatedTirePlusWheel
			{
				file = Trailer_basictrailer1backwheelright,
			}

			table install
			{
				complete = Vehicles.InstallTest.Default,
				requireInstalled = SuspensionRearRight,
			}
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			container
			{
				capacity = 1000,
				conditionAffectsCapacity = false,
			}
		}

		part LiazTrailerSpare1
		{
			area = TireRearLeft,

			model LiazTrailerSpare1
			{
				file = Trailer_basictrailer1_SpareTire1,
			}

			category = equipment,
			area = TireFrontLeft,
			specificItem = false,
			itemType = Base.ModernTire2,
			mechanicRequireKey = false,

			table install
			{
				time = 500,
				test = Vehicles.InstallTest.Default,
			}

			table uninstall
			{
				time = 500,
				test = Vehicles.UninstallTest.Default,
				complete = Vehicles.UninstallComplete.Default,
			}

			lua
			{
				create = ATATuning2.Create.Tuning,
			}
		}

		part LiazTrailerSpare2
		{
			area = TireRearLeft,

			model LiazTrailerSpare1
			{
				file = Trailer_basictrailer1_SpareTire2,
			}

			category = equipment,
			area = TireFrontLeft,
			specificItem = false,
			itemType = Base.ModernTire2,
			mechanicRequireKey = false,

			table install
			{
				time = 500,
				test = Vehicles.InstallTest.Default,
			}

			table uninstall
			{
				time = 500,
				test = Vehicles.UninstallTest.Default,
				complete = Vehicles.UninstallComplete.Default,
			}

			lua
			{
				create = ATATuning2.Create.Tuning,
			}
		}

		template! = Trailer_basictrailer1_trunkdoor,
		template! = Trailer_basictrailer1_trunks,
		template = Suspension,

		part Suspension*
		{
			table install
			{
				skills = Mechanics:5,
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				skills = Mechanics:5,
				recipes = Intermediate Mechanics,
			}
		}

		physics box
		{
			offset = 0.0000 1.5000 1.6383,
			extents = 2.3511 1.2553 3.9468,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 1.5000 1.6383,
			extents = 2.3500 1.2600 3.9500,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 0.3830 3.4468,
			rotate = 0.0000 0.0000 0.0000,
			canAttach = trailerfront,
			updateconstraint = false,
		}
	}
}
